package org.puremvc.scenelist.controller {
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	import org.puremvc.scenelist.model.SceneListProxy;
	import org.puremvc.scenelist.view.ApplicationMediator;
	import org.puremvc.scenelist.view.SceneListJunctionMediator;		

	public class StartupCommand extends SimpleCommand implements ICommand 
	{
		override public function execute(note : INotification):void
		{
			
			facade.registerMediator(new SceneListJunctionMediator());
			facade.registerProxy(new SceneListProxy());
			
			var app : SceneList = note.getBody() as SceneList;
			facade.registerMediator(new ApplicationMediator(app));
		}
	}
}